package bairui.international.weixin.portal.miniapp.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

@Configuration
public class Config_Security {
	
	@Configuration
	static class InitSecurity extends WebSecurityConfigurerAdapter {
		protected void configure(HttpSecurity http) throws Exception {
			/*
			 * headers配置
			 */
			http
				.csrf().disable()
				.headers().frameOptions().sameOrigin();
		}
	}

}